package com.neu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Schema(description = "邀请实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("invitation")
public class Invitation {
    @TableId(type= IdType.AUTO)
    private String invitationId;
    private String projectId;
    private String noticeId;
    private String projectName;
    /**
     * 邀请者ID
     */
    private String inviterId;
    /**
     * 被邀请人ID
     */
    private String inviteeId;
    /**
     * 被邀请人邮箱
     */
    private String inviteeEmail;
    /**
     * 角色ID
     */
    private String roleId;
    private String roleName;
    /**
     * 邀请状态 0: 待处理, 1: 已接受, 2: 已拒绝
     */
    private String status;
    /**
     * 邀请码
     */
    private String token;
    /**
     * 邀请码过期时间
     */
    private LocalDateTime expiresAt;
    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
    /**
     * 更新时间
     */
    private LocalDateTime updatedAt;
}
